package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Description:
 *
 * @Author 马钰涵
 * @Create 2023/8/10 16:09
 * @Version 1.0
 */
@Data
public class Category {
    private Integer id;
    private String name;
    private String remark;
    private Integer pid;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;   //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;   //更新时间

    private List<Category> children;    //树形表格
}
